        @include('Admin.public.head')
<body>
@include('Admin.public.menu')
<div class=" admin-content" id="app">
    {{ csrf_field() }}
    <div class="daohang">

    </div>
    <div class="am-popup am-popup-inner" id="my-popup">
        <div class="am-popup-hd">
            <h4 class="am-popup-title">添加会员等级</h4>
            <span data-am-modal-close
                  class="am-close">&times;</span> </div>
        <div class="am-popup-bd">
            <form class="am-form tjlanmu">
                <div class="am-form-group am-cf">
                    <div class="zuo">等级名称：</div>
                    <div class="you">
                        <input type="text" class="am-form-field" v-model="level.level_name" id="doc-ipt-email-1" placeholder="请输入等级名称">
                        <p class="am-form-help">会员等级</p>
                    </div>
                </div>
                <div class="am-form-group am-cf">
                    <div class="zuo">需要条件：</div>
                    <div class="you">
                        <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="level.conditions" placeholder="请输入金额">
                        <p class="am-form-help">在直商城购买的产品条件金额达到的会员条件</p>
                    </div>

                </div>
                <div class="am-form-group am-cf">
                    <div class="zuo">复投金额达到：</div>
                    <div class="you">
                        <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="level.credit3" placeholder="请输入复投币">
                        <p class="am-form-help">需复投激活一次，否则会员收入将失效</p>
                    </div>
                </div>
                <div class="am-form-group am-cf">
                    <div class="zuo">日封顶：</div>
                    <div class="you">
                        <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="level.day_caps" placeholder="请输入日封顶">
                        <p class="am-form-help">如果为“0”表示不封顶</p>
                    </div>
                </div>
                <div class="am-form-group am-cf">
                    <div class="you">
                        <button type="button" v-on:click="saveLevel()" class="am-btn am-btn-success am-radius">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    {{--编辑优品特选--}}
    <div class="am-modal am-modal-no-btn" tabindex="-1" id="my-popup1">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">业绩累积奖励设置
                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
            </div>
            <div class="am-modal-bd">
                <form class="am-form tjlanmu">
                    <div class="am-form-group am-cf">
                        <div class="zuo">业绩等级名称：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" v-model="setQuality.level_name" id="doc-ipt-email-1" placeholder="请输入业绩等级">
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">业绩阶段：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" v-model="setQuality.level_stage" id="doc-ipt-email-1" placeholder="请输入业绩阶段">
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">奖励占比：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setQuality.reword" placeholder="请输入奖励占比">
                            {{--<p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">个人消费：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setQuality.consumption" placeholder="请输入个人消费金额">
                            {{--<p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">团队业绩：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setQuality.team_count" placeholder="请输入团队业绩">
                            {{--<p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>
{{--                    <div class="am-form-group am-cf">--}}
{{--                        <div class="zuo">小区团队业绩：</div>--}}
{{--                        <div class="you">--}}
{{--                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setQuality.small_team_count" placeholder="请输入小区团队业绩">--}}
{{--                            --}}{{--<p class="am-form-help">收入下级的占比</p>--}}
{{--                        </div>--}}
{{--                    </div>--}}
{{--                    <div class="am-form-group am-cf">--}}
{{--                        <div class="zuo">小区团队数量：</div>--}}
{{--                        <div class="you">--}}
{{--                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setQuality.big_team" placeholder="请输入大区团队数量">--}}
{{--                            --}}{{--<p class="am-form-help">收入下级的占比</p>--}}
{{--                        </div>--}}
{{--                    </div>--}}
                    <div class="am-form-group am-cf">
                        <div class="zuo">小区团队业绩：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setQuality.small_team_count" placeholder="请输入小区团队业绩">
{{--                            <p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">总监平级占比：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setQuality.flat" placeholder="请输入平级奖励占比">
                            {{--<p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <button type="button" v-on:click="setQualityEdit" class="am-btn am-btn-success am-radius">确 定</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    {{--编辑VIP特惠--}}
    <div class="am-modal am-modal-no-btn" tabindex="-1" id="my-popup2">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">微商城设置
                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
            </div>
            <div class="am-modal-bd">
                <form class="am-form tjlanmu">
                    <div class="am-form-group am-cf">
                        <div class="zuo">等级名称：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" v-model="microMall.level_name" id="doc-ipt-email-1" placeholder="请输入直商城等级名称">
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">直推占比：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="microMall.direct" placeholder="请输入直推奖励占比">
                            {{--<p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>
{{--                    <div class="am-form-group am-cf">--}}
{{--                        <div class="zuo">直推加权业绩：</div>--}}
{{--                        <div class="you">--}}
{{--                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="microMall.tutor" placeholder="请输入直推加权业绩">--}}
{{--                            --}}{{--<p class="am-form-help">收入下级的占比</p>--}}
{{--                        </div>--}}
{{--                    </div>--}}
                    {{--<div class="am-form-group am-cf">--}}
                        {{--<div class="zuo">会员组：</div>--}}
                        {{--<div class="you">--}}
                            {{--<select v-model="microMall.vip_group_id">--}}
                                {{--<option value="0">默认从最低会员开始</option>--}}
                                {{--<option v-for="val in levelList" :value="val.id">@{{val.level_name}}</option>--}}
                            {{--</select>--}}
                        {{--</div>--}}
                    {{--</div>--}}
{{--                    <div class="am-form-group am-cf">--}}
{{--                        <div class="zuo">直推加权占比：</div>--}}
{{--                        <div class="you">--}}
{{--                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="microMall.discount" placeholder="请输入直推加权占比">--}}
{{--                        </div>--}}
{{--                    </div>--}}
                    {{--<div class="am-form-group am-cf">--}}
                        {{--<div class="zuo">复消累计金额：</div>--}}
                        {{--<div class="you">--}}
                            {{--<input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="microMall.credit3" placeholder="请输入复消累计金额">--}}
                        {{--</div>--}}
                    {{--</div>--}}
                    {{--<div class="am-form-group am-cf">--}}
                        {{--<div class="zuo">团队数量：</div>--}}
                        {{--<div class="you">--}}
                            {{--<input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="microMall.team" placeholder="请输入团队数量">--}}
                        {{--</div>--}}
                        {{--<span >请选择要上传的文件...</span>--}}
                    {{--</div>--}}
                    {{--<div class="am-form-group am-cf">--}}
                        {{--<div class="zuo">排序：</div>--}}
                        {{--<div class="you">--}}
                            {{--<input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="microMall.sorting" placeholder="请输入排序">--}}
                        {{--</div>--}}
                    {{--</div>--}}
                    <div class="am-form-group am-cf">
                        <button type="button" v-on:click="saveMall()" class="am-btn am-btn-success am-radius">确 定</button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <!--VIP升级商城修改-->
    <div class="am-modal am-modal-no-btn" tabindex="-1" id="my-popup3">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">超级商城设置
                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
            </div>
            <div class="am-modal-bd">
                <form class="am-form tjlanmu">
                    <div class="am-form-group am-cf">
                        <div class="zuo">等级名称：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" v-model="exceedShop.vip_name" id="doc-ipt-email-1" placeholder="请输入新人专区等级名称">
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">直推奖励占比：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="exceedShop.vip" placeholder="推荐vip奖励占比">
                        </div>
                    </div>

                    <div class="am-form-group am-cf">
                        <div class="zuo">平级奖励占比：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="exceedShop.tutor" placeholder="推荐导师平级占比">
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">累计直推数量：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="exceedShop.direct" placeholder="请输入累计直推数量">
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">累计团队人数：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="exceedShop.consumption_money" placeholder="请输入累计团队人数">
                        </div>
                        {{--<span >请选择要上传的文件...</span>--}}
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">小区团队人数：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="exceedShop.small_team_count" placeholder="请输入小区团队人数">
                        </div>
                        {{--<span >请选择要上传的文件...</span>--}}
                    </div>
{{--                    <div class="am-form-group am-cf">--}}
{{--                        <div class="zuo">阅读分享奖励占比：</div>--}}
{{--                        <div class="you">--}}
{{--                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="exceedShop.read_award" placeholder="请输入阅读分享奖励占比">--}}
{{--                        </div>--}}
{{--                        --}}{{--<span >请选择要上传的文件...</span>--}}
{{--                    </div>--}}
{{--                    <div class="am-form-group am-cf">--}}
{{--                        <div class="zuo">阅读分享平级奖励占比：</div>--}}
{{--                        <div class="you">--}}
{{--                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="exceedShop.read_leve" placeholder="请输入阅读分享平级奖励占比">--}}
{{--                        </div>--}}
{{--                        --}}{{--<span >请选择要上传的文件...</span>--}}
{{--                    </div>--}}
                    <div class="am-form-group am-cf">
                        <button type="button" v-on:click="exceedSave()" class="am-btn am-btn-success am-radius">确 定</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!--阅读设置修改-->
    <div class="am-modal am-modal-no-btn" tabindex="-1" id="my-popup9">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">阅读设置
                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
            </div>
            <div class="am-modal-bd">
                <form class="am-form tjlanmu">
                    <div class="am-form-group am-cf">
                        <div class="zuo">阅读批次：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" v-model="readData.batch" id="doc-ipt-email-1" placeholder="请输入阅读批次名称">
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">阅读增加积分：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="readData.point" placeholder="请输入阅读增加积分">
                        </div>
                    </div>

                    <div class="am-form-group am-cf">
                        <div class="zuo">批次会员系统系列：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="readData.sort" placeholder="请输入批次会员系统序列">
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <button type="button" v-on:click="readEdit()" class="am-btn am-btn-success am-radius">确 定</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!--抢购商城直推加权修改-->
    
    <div class="am-modal am-modal-no-btn" tabindex="-1" id="my-popup4">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">抢购商城直推加权
                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
            </div>
            <div class="am-modal-bd">
                <form class="am-form tjlanmu">
                    <div class="am-form-group am-cf">
                        <div class="zuo">等级名称：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" v-model="weighting.name" id="doc-ipt-email-1" disabled>
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">直推奖励占比：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="weighting.bonus" placeholder="请输入直推奖励占比">
                            {{--<p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">平级奖励占比：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="weighting.bill" placeholder="请输入平级奖励占比">
                        </div>
                    </div>

                    <div class="am-form-group am-cf">
                        <button type="button" v-on:click="weightingdSave()" class="am-btn am-btn-success am-radius">确 定</button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <!--抢购商城积分红包设置修改-->
    <div class="am-modal am-modal-no-btn" tabindex="-1" id="my-popup6">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">抢购商城积分红包设置
                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
            </div>
            <div class="am-modal-bd">
                <form class="am-form tjlanmu">
                    <div class="am-form-group am-cf">
                        <div class="zuo">积分余额：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" v-model="bonusPoints.points_balance" id="doc-ipt-email-1" placeholder="请输入积分余额">
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">积分红包占比：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="bonusPoints.proportion" placeholder="请输入积分红包占比">
                            {{--<p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>

                    <div class="am-form-group am-cf">
                        <button type="button" v-on:click="bonusPointsSave()" class="am-btn am-btn-success am-radius">确 定</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!--加权分红设置修改-->
    <div class="am-modal am-modal-no-btn" tabindex="-1" id="my-popup7">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">加权业绩累积奖励设置
                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
            </div>
            <div class="am-modal-bd">
                <form class="am-form tjlanmu">
                    <div class="am-form-group am-cf">
                        <div class="zuo">业绩等级名称：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" v-model="setBonus.level_name" id="doc-ipt-email-1" placeholder="请输入业绩等级名称">
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">奖励积分：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setBonus.reword" placeholder="请输入奖励占比">
                            {{--<p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">个人消费金额：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setBonus.personal_count" placeholder="请输入个人消费金额">
{{--                            <p class="am-form-help">个人消费金额</p>--}}
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">团队总业绩：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setBonus.team_count" placeholder="请输入团队业绩">
                            {{--<p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">团队总业绩份额标准：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setBonus.pre_team_count" placeholder="请输入大区团队业绩">
                            {{--<p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>
                    <div class="am-form-group am-cf">
                        <div class="zuo">小区团队总业绩：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setBonus.small_team_count" placeholder="请输入小区团队业绩">
                            {{--<p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>
{{--                    <div class="am-form-group am-cf">--}}
{{--                        <div class="zuo">大区团队业绩：</div>--}}
{{--                        <div class="you">--}}
{{--                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setBonus.big_team" placeholder="请输入大区团队业绩">--}}
{{--                            --}}{{--<p class="am-form-help">收入下级的占比</p>--}}
{{--                        </div>--}}
{{--                    </div>--}}
                    <div class="am-form-group am-cf">
                        <div class="zuo">小区团队总业绩标准：</div>
                        <div class="you">
                            <input type="text" class="am-form-field" id="doc-ipt-email-1" v-model="setBonus.pre_small_team_count" placeholder="请输入大区团队业绩">
                            {{--<p class="am-form-help">收入下级的占比</p>--}}
                        </div>
                    </div>

                    <div class="am-form-group am-cf">
                        <button type="button" v-on:click="setBonusEdit" class="am-btn am-btn-success am-radius">确 定</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <div class="admin-biaogelist" >
        <div class="listbiaoti am-cf">
            <ul class="am-icon-flag on"> 添加管理员</ul>
            {{--<dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <a href="#">商品列表</a></dl>--}}
        </div>
        <div class="fbneirong" >
            <div class="am-tabs" data-am-tabs>
                <ul class="am-tabs-nav am-nav am-nav-tabs">
                    <li><a href="#tab4">系统设置</a></li>
                    <li><a href="#tab5">新人专区</a></li>
                    <li ><a href="#tab2">复销商城</a></li>
                    <li><a href="#tab1">团队业绩设置</a></li>
{{--                    <li><a href="#tab7">加权业绩设置</a></li>--}}
                    <li><a href="#tab3">特价专区</a></li>
{{--                    <li><a href="#tab6">阅读设置</a></li>--}}
                </ul>

                <div class="am-tabs-bd">
					<div class="am-tab-panel am-fade" id="tab4">
					    <form class="am-form">
					        <fieldset>
					            <legend>系统设置</legend>
					            <div class="am-form-group">
					                <label for="doc-ipt-email-1">奖励复销留存 %</label>
					                <input type="text" class="" style="max-width: 300px;" v-model="system.redelivery" id="doc-ipt-email-1" placeholder="输入复销%">
					            </div>
{{--                                <div class="am-form-group">--}}
{{--                                    <label for="doc-ipt-email-1">补贴奖励复销留存 %</label>--}}
{{--                                    <input type="text" class="" style="max-width: 300px;" v-model="system.subsidy_money" id="doc-ipt-email-1" placeholder="补贴奖励复销留存%">--}}
{{--                                </div>--}}
{{--                                <div class="am-form-group">--}}
{{--                                    <label for="doc-ipt-email-1">报单阅读积分抵扣 %</label>--}}
{{--                                    <input type="text" class="" style="max-width: 300px;" v-model="system.deduction" id="doc-ipt-email-1" placeholder="输入报单抵扣%">--}}
{{--                                </div>--}}
{{--					            <div class="am-form-group">--}}
{{--					                <label for="doc-ipt-pwd-1">复投复销积分抵扣 %</label>--}}
{{--					                <input type="text" class="" style="max-width: 300px;" v-model="system.redelivery_money" id="doc-ipt-pwd-1" placeholder="输入复销抵扣%">--}}
{{--					            </div>--}}
					
					            <div class="am-form-group">
					                <label for="doc-ipt-pwd-1">平台费 %</label>
					                <input type="text" class="" style="max-width: 300px;" v-model="system.platform_fee" id="doc-ipt-pwd-1" placeholder="设置个密码吧">
					            </div>
					
					            <div class="am-form-group">
					                <label for="doc-ipt-pwd-1">提现扣税手续费 %</label>
					                <input type="text" class="" style="max-width: 300px;" v-model="system.poundage" id="doc-ipt-pwd-1" placeholder="设置个密码吧">
					            </div>
{{--					            <div class="am-form-group am-form-file">--}}
{{--					                <label for="doc-ipt-file-2">提现日期</label>--}}
{{--					            </div>--}}
{{--					            <div class="am-form-group">--}}
{{--					                <label class="am-checkbox-inline" v-for="val in weeks">--}}
{{--					                    <input type="checkbox" v-model="val.status" data-am-ucheck> @{{ val.week }}--}}
{{--					                </label>--}}
{{--					            </div>--}}
					            <div class="am-form-group">
					                <label for="doc-ipt-pwd-1">提现金额限制为</label>
					                <input type="text" class="" style="max-width: 300px;" v-model="system.withdrawal_money" id="doc-ipt-pwd-1" placeholder="提现金额限制为">
					            </div>
{{--					            <div class="am-form-group">--}}
{{--					                <label for="doc-ipt-pwd-1">省代理</label>--}}
{{--					                <input type="text" class="" style="max-width: 300px;" v-model="system.province" id="doc-ipt-pwd-1" placeholder="省代理">--}}
{{--					            </div>--}}
					            <div class="am-form-group">
					                <label for="doc-ipt-pwd-1">市代理%</label>
					                <input type="text" class="" style="max-width: 300px;" v-model="system.city" id="doc-ipt-pwd-1" placeholder="市代理">
					            </div>
{{--					            <div class="am-form-group">--}}
{{--					                <label for="doc-ipt-pwd-1">县区代理</label>--}}
{{--					                <input type="text" class="" style="max-width: 300px;" v-model="system.area" id="doc-ipt-pwd-1" placeholder="县区代理">--}}
{{--					            </div>--}}
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">代理合伙人%</label>
                                    <input type="text" class="" style="max-width: 300px;" v-model="system.distribution" id="doc-ipt-pwd-1" placeholder="市代理加权分配">
                                </div>
{{--                                <div class="am-form-group">--}}
{{--                                    <label for="doc-ipt-pwd-1">团队收益</label>--}}
{{--                                    <input type="text" class="" style="max-width: 300px;" v-model="system.team_profit" id="doc-ipt-pwd-1" placeholder="团队收益">--}}
{{--                                </div>--}}
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">代理运营%</label>
                                    <input type="text" class="" style="max-width: 300px;" v-model="system.platform_profit" id="doc-ipt-pwd-1" placeholder="代理服务组加权分配">
                                </div>
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">代理CEO%</label>
                                    <input type="text" class="" style="max-width: 300px;" v-model="system.ceo" id="doc-ipt-pwd-1" placeholder="区域代理CEO分红">
                                </div>
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">代理总务%</label>
                                    <input type="text" class="" style="max-width: 300px;" v-model="system.investment" id="doc-ipt-pwd-1" placeholder="代理投资人分红">
                                </div>
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">总公司一级合伙人分红%</label>
                                    <input type="text" class="" style="max-width: 300px;" v-model="system.is_one" id="doc-ipt-pwd-1" placeholder="总公司一级合伙人分红">
                                </div>
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">总公司二级合伙人分红%</label>
                                    <input type="text" class="" style="max-width: 300px;" v-model="system.is_two" id="doc-ipt-pwd-1" placeholder="总公司二级合伙人分红">
                                </div>
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">总公司三级合伙人分红%</label>
                                    <input type="text" class="" style="max-width: 300px;" v-model="system.is_three" id="doc-ipt-pwd-1" placeholder="总公司三级合伙人分红">
                                </div>
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">新人专区推荐份额占比%</label>
                                    <input type="text" class="" style="max-width: 300px;" v-model="system.share" id="doc-ipt-pwd-1" placeholder="直推加权占比">
                                </div>
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">补贴奖励池(不可修改)</label>
                                    <input type="text" class="" style="max-width: 300px;" v-model="system.subsidy_reward" id="doc-ipt-pwd-1" disabled="disabled"  placeholder="订单消费份额分红占比">
                                </div>
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">订单消费奖金池分红占比%</label>
                                    <input type="text" class="" style="max-width: 300px;" v-model="system.set_order_consumption"    id="doc-ipt-pwd-1" placeholder="订单消费份额分红占比">
                                </div>
{{--                                <div class="am-form-group">--}}
{{--                                    <label for="doc-ipt-pwd-1">订单团队份额分红占比</label>--}}
{{--                                    <input type="text" class="" style="max-width: 300px;" v-model="system.set_order_team" id="doc-ipt-pwd-1" placeholder="订单团队份额分红占比">--}}
{{--                                </div>--}}
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">绑定门店收益%</label>
                                    <input type="text" class="" style="max-width: 300px;" v-model="system.bind_store" id="doc-ipt-pwd-1" placeholder="绑定门店收益">
                                </div>
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">消费门店收益%</label>
                                    <input type="text" class="" style="max-width: 300px;" v-model="system.store" id="doc-ipt-pwd-1" placeholder="消费门店收益">
                                </div>

                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">充值热线</label>
                                    <input type="number" class="" style="max-width: 300px;" v-model="system.day_times" id="doc-ipt-pwd-1" placeholder="充值热线">
                                </div>
                                <div class="am-form-group">
                                    <label for="doc-ipt-pwd-1">售后热线</label>
                                    <input type="number" class="" style="max-width: 300px;" v-model="system.day_probability" id="doc-ipt-pwd-1" placeholder="售后热线">
                                </div>

					        </fieldset>
					    </form>
					    <div class="am-form-group">
					        <a class="am-btn am-btn-warning"  v-on:click="saveSystem()" href="#">
					            确 定
					        </a>
					    </div>
					</div>
					
                    <div class="am-tab-panel am-fade " id="tab2">

                        <form class="am-form am-g" >
                            <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
                                <thead>
                                <tr class="am-success">
                                    <th class="table-id">排序</th>
                                    <th >等级名称</th>
                                    <th >直推奖励占比</th>
{{--                                    <th >直推加权业绩</th>--}}
{{--                                    <th >直推加权占比</th>--}}
                                    <th >操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr v-for="val in microMallList">
                                    {{--<td><input type="text" :value="val.sorting" v-on:blur="blurMall(val)" class="am-form-field am-radius am-input-sm"/></td>--}}
                                    <td>@{{ val.id}}</td>
                                    <td>@{{ val.level_name }}</td>
                                    <td>@{{ val.direct }}%</td>
{{--                                    <td>@{{ val.tutor }}</td>--}}
{{--                                    <td>@{{ val.discount }}%</td>--}}
                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <button type="button" class="am-btn am-btn-default am-btn-xs am-text-secondary am-round" data-am-modal="{target: '#my-popup2'}" v-on:click="editMall(val)"><span class="am-icon-pencil-square-o"></span></button>
                                                {{--<button type="button" class="am-btn am-btn-default am-btn-xs am-text-danger am-round" v-on:click="delet(user.id)"><span class="am-icon-trash-o"></span></button>--}}
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <hr />
                            <a class="am-btn am-btn-warning" data-am-modal="{target: '#my-popup2',width: 600}" href="#">
                                <i class="am-icon-plus"></i>
                                添加
                            </a>
                        </form>
                    </div>

                    <div class="am-tab-panel am-fade am-in am-active" id="tab1">
                        <form class="am-form am-g" >
                            <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
                                <thead>
                                <tr class="am-success">
                                    <th >业绩名称</th>
{{--                                    <th >业绩阶段</th>--}}
                                    <th >奖励占比</th>
                                    <th >个人消费</th>
                                    <th >团队业绩</th>
                                    <th >小区团队业绩</th>
{{--                                    <th >销售总监平级占比</th>--}}
                                    <th >操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr v-for="val in qualityList">
                                    <td>@{{ val.level_name }}</td>
{{--                                    <td>@{{ val.level_stage }}</td>--}}
                                    <td>@{{ val.reword }}%</td>
                                    <td>@{{ val.consumption }}</td>
                                    <td>@{{ val.team_count }}</td>
                                    <td>@{{ val.small_team_count }}</td>
{{--                                    <td>@{{ val.flat }}%</td>--}}
                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <button type="button" class="am-btn am-btn-default am-btn-xs am-text-secondary am-round" data-am-modal="{target: '#my-popup1'}" v-on:click="edit(val)"><span class="am-icon-pencil-square-o"></span></button>
                                                {{--<button type="button" class="am-btn am-btn-default am-btn-xs am-text-danger am-round" v-on:click="delet(id)"><span class="am-icon-trash-o"></span></button>--}}
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <hr />
                            <a class="am-btn am-btn-warning" data-am-modal="{target: '#my-popup1',width: 600}" href="#">
                                <i class="am-icon-plus"></i>
                                添加
                            </a>
                        </form>
                    </div>
                    {{--超级微商城--}}
                    <div class="am-tab-panel am-fade" id="tab5">
                        <form class="am-form am-g" >
                            <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
                                <thead>
                                <tr class="am-success">

                                    <th >等级名称</th>
                                    <th >直推奖励占比</th>
                                    <th >平级奖励占比</th>
                                    <th >直推团队数量</th>
                                    <th >累计团队人数</th>
                                    <th >累计团队小区人数</th>
{{--                                    <th >阅读分享奖励占比</th>--}}
{{--                                    <th >阅读分享平级奖励占比</th>--}}
                                    <th >操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr v-for="val in exceedShopList">
                                    {{--<td><input type="text" :value="val.sorting" v-on:blur="blurMall(val)" class="am-form-field am-radius am-input-sm"/></td>--}}
                                    <td>@{{ val.vip_name }}</td>
                                    <td>@{{ val.vip }}%</td>
                                    <td>@{{ val.tutor }}%</td>
                                    <td>@{{ val.direct }}</td>
                                    <td>@{{ val.consumption_money}}</td>
                                    <td>@{{ val.small_team_count}}</td>
{{--                                    <td>@{{ val.read_award}}</td>--}}
{{--                                    <td>@{{ val.read_leve}}</td>--}}
                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <button type="button" class="am-btn am-btn-default am-btn-xs am-text-secondary am-round" data-am-modal="{target: '#my-popup3'}" v-on:click="editExceed(val)"><span class="am-icon-pencil-square-o"></span></button>
                                                {{--<button type="button" class="am-btn am-btn-default am-btn-xs am-text-danger am-round" v-on:click="delet(user.id)"><span class="am-icon-trash-o"></span></button>--}}
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <hr />
                            {{--<a class="am-btn am-btn-warning" data-am-modal="{target: '#my-popup3',width: 600}" href="#">--}}
                                {{--<i class="am-icon-plus"></i>--}}
                                {{--添加--}}
                            {{--</a>--}}
                        </form>
                    </div>
                    <div class="am-tab-panel am-fade" id="tab3">
                        <form class="am-form am-g" >
                            <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
                                <thead>
                                <tr class="am-success">
                                    <th >等级名称</th>
                                    <th >直推奖励</th>
                                    <th >平级奖励</th>
                                    <th >操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr v-for="val in weightingList">
                                    {{--<td><input type="text" :value="val.sorting" v-on:blur="blurMall(val)" class="am-form-field am-radius am-input-sm"/></td>--}}
                                    <td>@{{ val.name }}</td>
                                    <td>@{{ val.bonus }}</td>
                                    <td>@{{ val.bill }}</td>
                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <button type="button" class="am-btn am-btn-default am-btn-xs am-text-secondary am-round" data-am-modal="{target: '#my-popup4'}" v-on:click="editweighting(val)"><span class="am-icon-pencil-square-o"></span></button>
                                                {{--<button type="button" class="am-btn am-btn-default am-btn-xs am-text-danger am-round" v-on:click="delet(user.id)"><span class="am-icon-trash-o"></span></button>--}}
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <hr />
                            {{--<a class="am-btn am-btn-warning" data-am-modal="{target: '#my-popup3',width: 600}" href="#">--}}
                            {{--<i class="am-icon-plus"></i>--}}
                            {{--添加--}}
                            {{--</a>--}}
                        </form>
                    </div>
                    
                    <div class="am-tab-panel am-fade" id="tab6">
                        <form class="am-form am-g" >
                            <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
                                <thead>
                                <tr class="am-success">
                                    <th >阅读批次</th>
                                    <th >阅读获得积分量</th>
                                    <th >批次排序</th>
                                    <th >操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr v-for="val in readList">
                                    {{--<td><input type="text" :value="val.sorting" v-on:blur="blurMall(val)" class="am-form-field am-radius am-input-sm"/></td>--}}
                                    <td>@{{ val.batch }}</td>
                                    <td>@{{ val.point }}</td>
                                    <th>@{{ val.sort }}</th>
                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <button type="button" class="am-btn am-btn-default am-btn-xs am-text-secondary am-round" data-am-modal="{target: '#my-popup9'}" v-on:click="readSave(val)"><span class="am-icon-pencil-square-o"></span></button>
                                                {{--<button type="button" class="am-btn am-btn-default am-btn-xs am-text-danger am-round" v-on:click="delet(user.id)"><span class="am-icon-trash-o"></span></button>--}}
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <hr />
                            {{--<a class="am-btn am-btn-warning" data-am-modal="{target: '#my-popup3',width: 600}" href="#">--}}
                            {{--<i class="am-icon-plus"></i>--}}
                            {{--添加--}}
                            {{--</a>--}}
                        </form>
                    </div>
                    <div class="am-tab-panel am-fade am-in am-active" id="tab7">
                        <form class="am-form am-g" >
                            <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
                                <thead>
                                <tr class="am-success">
                                    <th >业绩等级</th>
                                    <th >等级名称</th>
                                    <th >奖励积分</th>
                                    <th >个人消费金额</th>
                                    <th >团队业绩</th>
                                    <th >团队业绩增加份额标准</th>
                                    <th >小区团队业绩</th>
{{--                                    <th >大区团队业绩</th>--}}
                                    <th >小区增加份额标准</th>
                                    <th >操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr v-for="val in bonusList">
                                    <td>@{{ val.id }}</td>
                                    <td>@{{ val.level_name }}</td>
                                    <td>@{{ val.reword }}</td>
                                    <td>@{{ val.personal_count }}</td>
                                    <td>@{{ val.team_count }}</td>
                                    <td>@{{ val.pre_team_count }}</td>
                                    <td>@{{ val.small_team_count }}</td>
{{--                                    <td>@{{ val.big_team }}</td>--}}
                                    <td>@{{ val.pre_small_team_count }}</td>
                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <button type="button" class="am-btn am-btn-default am-btn-xs am-text-secondary am-round" data-am-modal="{target: '#my-popup7'}" v-on:click="editSet(val)"><span class="am-icon-pencil-square-o"></span></button>
                                                {{--<button type="button" class="am-btn am-btn-default am-btn-xs am-text-danger am-round" v-on:click="delet(id)"><span class="am-icon-trash-o"></span></button>--}}
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <hr />
                            <a class="am-btn am-btn-warning" data-am-modal="{target: '#my-popup7',width: 600}" href="#">
                                <i class="am-icon-plus"></i>
                                添加
                            </a>
                        </form>
                    </div>
                </div>
            </div>

        </div>
  <script>
      var app = new Vue({
          el:"#app",
          data: {
              setQuality:{
                  'id':'',
                  'name':'',
                  'reward':'',
                  'interposition':'',
                  'create_at':'',
                  'update_at':'',
              },
              bonusList:{},
              setBonus:{
                  'id':'',
                  'name':'',
                  'reward':'',
                  'interposition':'',
                  'create_at':'',
                  'update_at':'',
              },
              qualityList:{}, // 会员等级列表
              level:{
                  'id':'',
                  'level_name':'',
                  'conditions':'',
                  'credit3':'',
                  'day_caps':'',
              },
              levelList:{}, // 会员等级列表
              microMall:{//wei商城设置
                  'id' :'',
                  'vip_name':'',
                  'conditions':'',
                  'management':'',
                  'credit3':'',
                  'team':'',
                  'type':'',
                  'discount':'',
                  'vip_group_id':'0',
                  'vip_group_name':'',
                  'sorting':'',
              },
              exceedShopList:{},//超级微商城
              exceedShop:{//超级微商城
                  'id' :'',
                  'vip_name':'',
                  'conditions':'',
                  'management':'',
                  'credit5':'',
                  'team1':'',
                  'team2':'',
                  'type':'',
              },
              readList:{},//阅读设置
              readData:{
                  'id':'',
                  'batch':'',
                  'point':'',
                  'sort':'',
              },
              weightingList:{},//抢购商城直推加权
              weighting:{//抢购商城直推加权
                  'id' :'',
                  'name':'',
                  'bonus':'',
                  'bill':'',
              },
              bonusPointsList:{},//抢购商城直推加权
              bonusPoints:{//抢购商城直推加权
                  'id' :'',
                  'points_balance':'',
                  'proportion':'',
              },
              microMallList:{},//直商城列表
              weeks:[
                  {week:'星期一',status:false,day:1},
                  {week:'星期二',status:false,day:2},
                  {week:'星期三',status:false,day:3},
                  {week:'星期四',status:false,day:4},
                  {week:'星期五',status:false,day:5},
                  {week:'星期六',status:false,day:6},
                  {week:'星期日',status:false,day:7},
              ],
              system:{ //系统设置
                  'id':'' ,
                  'redelivery':'',
                  'redelivery_money':'',
                  'platform_fee':'',
                  'poundage':'',
                  'withdrawal_day':'',
                  'withdrawal_money':'',
                  'province':'',
                  'city':'',
                  'area':'',
                  'equity':'',
                  'DT_equity':''
              },
              shop:{ //直商城设置
                  'id':'' ,
                  'recommend':'',
                  'touch':'',
                  'touch_number':'',
                  'win_win1':'',
                  'win_win3':'',
                  'win_win5':'',
                  'point':'',
                  'point_set':'',
                  'layer1':'',
                  'layer2':'',
                  'layer3':'',
                  'star_set1':'',
                  'star1':'',
                  'star_set2':'',
                  'star2':'',
                  'star_set3':'',
                  'star3':'',
              },
          },
          //事件
          methods: {
              //初始化 系统管理员列表
              initialize:function () {
                  //会员等级表
                  $.post("/admin/system/level",{'_token':'{{csrf_token()}}',class:'select'},function (res) {
                      if(res.code){
                          app.levelList = res.data;
                      } else {
                          layer.msg(res.data);
                      }
                  });
                  //优品特选设置表
                  $.post("/admin/system/setQuality",{'_token':'{{csrf_token()}}',class:'select'},function (res) {
                      if(res.code){
                          app.qualityList = res.data;
                      } else {
                          layer.msg(res.data);
                      }
                  });
                  //加权业绩设置表
                  $.post("/admin/system/setBonus",{'_token':'{{csrf_token()}}',class:'select'},function (res) {
                      if(res.code){
                          app.bonusList = res.data;
                      } else {
                          layer.msg(res.data);
                      }
                  });
                  //微商城表
                  $.post("/admin/system/microMall",{'_token':'{{csrf_token()}}',class:'select'},function (res) {
                      if(res.code){
                          app.microMallList = res.data;
                      } else {
                          layer.msg(res.data);
                      }
                  });

                  //超商城表
                  $.post("/admin/system/exceedShop",{'_token':'{{csrf_token()}}',class:'select'},function (res) {
                      if(res.code){
                          app.exceedShopList = res.data;
                      } else {
                          layer.msg(res.data);
                      }
                  });
                  //直推加权
                  $.post("/admin/system/weighting",{'_token':'{{csrf_token()}}',class:'select'},function (res) {
                      if(res.code){
                          app.weightingList = res.data;
                      } else {
                          layer.msg(res.data);
                      }
                  });
                  //阅读设置
                  $.post("/admin/system/setRead",{'_token':'{{csrf_token()}}',class:'select'},function (res) {
                      if(res.code){
                          app.readList = res.data;
                      } else {
                          layer.msg(res.data);
                      }
                  });
                  //积分红包设置
                  $.post("/admin/system/bonusPoints",{'_token':'{{csrf_token()}}',class:'select'},function (res) {
                      if(res.code){
                          app.bonusPointsList = res.data;
                      } else {
                          layer.msg(res.data);
                      }
                  });
                  //系统设置
                  $.post("/admin/system/system",{'_token':'{{csrf_token()}}',class:'select'},function (res) {
                      if(res.code){
                          for (var i=0;i<res.data.withdrawal_day.length;++i){
                              for (var j=0;j<app.weeks.length;++j) {
                                  if(app.weeks[j].day == res.data.withdrawal_day[i]){
                                      app.weeks[j].status = true;
                                  }
                              }
                          }
                          // console.dir(res.data.withdrawal_day);
                          app.system = res.data;
                      } else {
                          layer.msg(res.data);
                      }
                  });

                  $.post("/admin/system/shop",{'_token':'{{csrf_token()}}',class:'select'},function (res) {
                      if(res.code){
                          app.shop = res.data;
                      } else {
                          layer.msg(res.data);
                      }
                  });
              },
              setBonusEdit:function () {
                  // console.dir(app.setQuality);
                  // if(app.setQuality.name == ''){
                  //     layer.msg('请输入会员等级!');return false;
                  // }
                  // if(app.setQuality.reward == ''){
                  //     layer.msg('请输入直推奖励占比!');return false;
                  // }
                  // if(app.setQuality.interposition == ''){
                  //     layer.msg('请输入间推奖励占比!');return false;
                  // }
                  $.post("/admin/system/setBonus",{'_token':'{{csrf_token()}}',class:'add',setBonus:app.setBonus},function (res) {
                      if(res.code){
                          layer.msg(res.data);
                          console.log(data)
                          window.setBonus.href="/admin/system/set";
                      } else {
                          layer.msg(res.data);
                      }
                  });
              },
              //编辑优品特选
              edit:function (val) {
                  app.setQuality = val
              },
              //编辑微商城
              editMall:function (val) {
                  app.microMall = val
              },
              //编辑阅读规则设置
              readSave:function(val){
                  app.readData = val
              },
              //编辑加权分红
              editSet:function (val) {
                  app.setBonus= val
              },
              //编辑超级微商城
              editExceed:function(val){
                  app.exceedShop = val
              },
              //编辑直推加权
              editweighting:function(val){
                  app.weighting = val
              },
              //编辑积分红包
              edibonusPoints:function(val){
                  app.bonusPoints = val
              },
              //超级商城编辑提交
              exceedSave:function(){
                  // alert(1);
                  if(app.exceedShop.vip_name == ''){
                      layer.msg('请输入会员等级!');return false;
                  }
                  if(app.exceedShop.conditions == ''){
                      layer.msg('请输入分成占比!');return false;
                  }
                  if(app.exceedShop.management == ''){
                      layer.msg('请输入管理奖金!');return false;
                  }
                  $.post("/admin/system/exceedShop",{'_token':'{{csrf_token()}}',class:'add',shop:app.exceedShop},function (res) {
                      if(res.code){
                          layer.msg(res.data);
                      } else {
                          layer.msg(res.data);
                      }
                  });

              },
              //阅读设置编辑提交
              readEdit:function(){
                  // if(app.readData.batch == ''){
                  //     layer.msg('请输入阅读批次！');return false;
                  // }
                  // if(app.readData.point == ''){
                  //     layer.msg('阅读获得积分不能为空！');return false;
                  // }
                  $.post("/admin/system/setRead",{'_token':'{{csrf_token()}}',class:'add',set:app.readData},function (res) {
                      if(res.code){
                          layer.msg(res.data);
                      } else {
                          layer.msg(res.data);
                      }
                  });
              },
              //直推加权辑提交
              weightingdSave:function(){
                  // alert(1);
                  // if(app.weighting.start == ''){
                  //     layer.msg('参与次数起始范围不能为空!');return false;
                  // }
                  // if(app.weighting.end == ''){
                  //     layer.msg('参与次数结束范围不能为空!');return false;
                  // }
                  // if(app.weighting.rebate == ''){
                  //     layer.msg('返利不能为空!');return false;
                  // }
                  $.post("/admin/system/weighting",{'_token':'{{csrf_token()}}',class:'add',shop:app.weighting},function (res) {
                      if(res.code){
                          layer.msg(res.data);
                      } else {
                          layer.msg(res.data);
                      }
                  });

              },
              //积分红包辑提交
              bonusPointsSave:function(){
                  // alert(1);
                  if(app.bonusPoints.points_balance == ''){
                      layer.msg('积分余额不能为空!');return false;
                  }
                  if(app.bonusPoints.proportion == ''){
                      layer.msg('积分红包占比不能为空!');return false;
                  }
                  $.post("/admin/system/bonusPoints",{'_token':'{{csrf_token()}}',class:'add',shop:app.bonusPoints},function (res) {
                      if(res.code){
                          layer.msg(res.data);
                      } else {
                          layer.msg(res.data);
                      }
                  });

              },
          //保存优品特选设置
              setQualityEdit:function () {
                  // console.dir(app.setQuality);
                  if(app.setQuality.name == ''){
                      layer.msg('请输入会员等级!');return false;
                  }
                  if(app.setQuality.reward == ''){
                      layer.msg('请输入直推奖励占比!');return false;
                  }
                  if(app.setQuality.interposition == ''){
                      layer.msg('请输入间推奖励占比!');return false;
                  }
                  $.post("/admin/system/setQuality",{'_token':'{{csrf_token()}}',class:'add',setQuality:app.setQuality},function (res) {
                      if(res.code){
                          layer.msg(res.data);
                          window.setQuality.href="/admin/system/set";
                      } else {
                          layer.msg(res.data);
                      }
                  });
              },

              //exceedShop

              //修改微商城的排序
              // blurMall:function (val) {
              //     console.dir(val)
              //     console.dir(app.microMall)
              //     // app.microMall = val
              // },
              //获取url id
              obtain:function (val) {
                  var query = window.location.search.substring(1);
                  var vars = query.split("&");
                  for (var i=0;i<vars.length;i++) {
                      var pair = vars[i].split("=");
                      if(pair[0] == val){
                          return pair[1];
                      }
                  }
              },
              //保存等级
              saveLevel:function () {
                  $.post("/admin/system/level",{'_token':'{{csrf_token()}}',class:'add',level:app.level},function (res) {
                      if(res.code){
                          layer.msg(res.data,{time:500},function () {
                              window.location.href="/admin/system/set";
                          });
                      } else {
                          layer.msg(res.data);
                      }
                  });
              },
              //保存微商城设置
              saveMall:function () {
                  // 'vip_name':'',
                  //     'conditions':'',
                  //     'management':'',
                  //     'credit3':'',
                  //     'team':'',
                  //     'type':'',
                  //     'discount':'',
                  //     'vip_group_id':'0',
                  //     'sorting':'',
                  if(app.microMall.vip_name == ''){
                      layer.msg('请输入会员等级!');return false;
                  }
                  if(app.microMall.conditions == ''){
                      layer.msg('请输入分成占比!');return false;
                  }
                  if(app.microMall.management == ''){
                      layer.msg('请输入管理奖金!');return false;
                  }
                  console.dir(app.microMall);
                  $.post("/admin/system/microMall",{'_token':'{{csrf_token()}}',class:'add',microMall:app.microMall},function (res) {
                      if(res.code){
                          layer.msg(res.data);
                          window.location.href="/admin/system/set";
                      } else {
                          layer.msg(res.data);
                      }
                  });
              },
              saveShop:function () {

                  $.post("/admin/system/shop",{'_token':'{{csrf_token()}}',class:'add',shop:app.shop},function (res) {
                      if(res.code){
                          layer.msg(res.data);
                      } else {
                          layer.msg(res.data);
                      }
                  });
              },
              //保存系统设置
              saveSystem:function () {
                  var withdrawal_day = '';
                  for (var i=0;i<app.weeks.length;++i){
                      if(app.weeks[i].status){
                          withdrawal_day = (withdrawal_day == '')?app.weeks[i].day:withdrawal_day+','+app.weeks[i].day;
                      }
                  }
                  app.system.withdrawal_day = withdrawal_day;
                  $.post("/admin/system/system",{'_token':'{{csrf_token()}}',class:'add',system:app.system},function (res) {
                      if(res.code){
                          layer.msg(res.data);
                      } else {
                          layer.msg(res.data);
                      }
                  });
              }
          },
          //自动执行
          mounted: function () {
              this.initialize();
          },
      })
  </script>
@include('Admin.public.foot')